<template>
	<view class="container">
		<view class="title">{{title}}</view>

		<text>{{about}}</text>


	</view>
</template>

<script>
	import {
		getAboutUs
	} from '@/api/me.js'

	export default {
		data() {
			return {
				details: "",
				title: '',
				about: ''
			};
		},
		onLoad() {
			// uni.request({
			// 	url: this.env + '/index/getWebSide',
			// 	success: (res) => {
			// 		// console.log(res.data.data,"11111")
			// 		this.details = res.data.data
			// 	}
			// })
			getAboutUs().then(res => {
				// console.log(res.data, "11111111111")
				res.data.forEach(item => {
					if (item.name == 'name') {
						this.title = item.value
					} else if (item.name == 'about') {
						this.about = item.value
					}
				})
			})
		}
	}
</script>

<style lang="less">
	.container {
		padding: 25rpx 30rpx;
		box-sizing: border-box;
		height: calc(100vh - 90rpx);
		background: #fff;

		.title {
			font-size: 36rpx;
			font-weight: bold;
			margin-bottom: 28rpx;
		}

		text {
			font-size: 28rpx;
		}
	}
</style>